<!-- 约球界面->分区三个按钮 -->
<template>
  <view class="content">
    <div class="button_area">
      <button @click="goTorookie()">
        <div class="button_1">
          <text class="words">{{text_1}}</text>
          <p class="arrow" style=" display: inline-block;">
            <image src="/static/icon/post/right.png" mode="aspectFill"
              style="height: 50px; width: 50px; vertical-align: text-bottom;"></image>
          </p>
        </div>
      </button>
      <button @click="goTomid()">
        <div class="button_1">
          <text class="words">{{text_2}}</text>
          <p class="arrow" style=" display: inline-block;">
            <image src="/static/icon/post/right.png" mode="aspectFill"
              style="height: 50px; width: 50px; vertical-align: text-bottom;"></image>
          </p>
        </div>
      </button>
      <button @click="goTosenior()">
        <div class="button_1">
          <text class="words">{{text_3}}</text>
          <p class="arrow" style=" display: inline-block;">
            <image src="/static/icon/post/right.png" mode="aspectFill"
              style="height: 50px; width: 50px; vertical-align: text-bottom;"></image>
          </p>
        </div>
      </button>
    </div>
    <div>
      <image src="http://s0v3kcpk7.hn-bkt.clouddn.com/static/icon/pattern_2.png" class="pattern_2">
      </image>
    </div>
  </view>
</template>

<script>
  export default {
    data() {
      return {
        text_1: '萌新场',
        text_2: '中阶场',
        text_3: '高手场',
      };
    },
    methods: {
      goTorookie() {
        getApp().globalData.blogType = 0; //用于和后端对接的地址信息，三个分区
        console.log(getApp().globalData.blogType)
        uni.navigateTo({
          url: '/pages/partition/appointPostarea'
        })
      },
      goTomid() {
				if (this.sessionID) {
					uni.showToast({
						title: '请先登录!',
						icon: 'none',
						duration: 3000
					});
					return;
				}
        getApp().globalData.blogType = 1;
        console.log(getApp().globalData.blogType)
        uni.navigateTo({
          url: '/pages/partition/appointPostarea'
        })
      },
      goTosenior() {
				if (this.sessionID) {
					uni.showToast({
						title: '请先登录!',
						icon: 'none',
						duration: 3000
					});
					return;
				}
        getApp().globalData.blogType = 2;
        console.log(getApp().globalData.blogType)
        uni.navigateTo({
          url: '/pages/partition/appointPostarea'
        })
      }
    }
  };
</script>

<style>
  page {
    height: 100vh;
    width: 100vw;
  }

  .content {
    background-image: url('http://s0v3kcpk7.hn-bkt.clouddn.com/static/background/background_1.jpg');
		/* 图片素材background_1.jpg */
    background-size: cover;
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
  }

  .pattern_2 {
    position: absolute;
    height: 320px;
    width: 300px;
    left: 5%;
    bottom: 0%;
  }

  .button_area {
    margin-top: 100px;
  }

  button {
    background-color: #2d2d2d;
    border-radius: 10px;
    margin-bottom: 5%;
    height: 80px;
    width: 300px;
    border: 1px solid #bbbbbb;
    text-align: left;
    padding-top: 10px;
  }

  .words {
    color: #FFBF6B;
    font-size: 50px;
    line-height: 60px;
  }

  .arrow {
    float: right;
  }
</style>